const express = require('express')
const router = express.Router()
const { getUserInfo, amdinLogin } = require('../controller/User')
const { isUid, valLogin } = require('../validate/User')
// /api/user
router.get('/', isUid, getUserInfo)
// /api/user/login
router.post('/login', valLogin, amdinLogin)

module.exports = router
